package com.hspjava.stringbuffer_;

public class StringBufferMethod {
    public static void main(String[] args) {
        StringBuffer s = new StringBuffer("hello");
        s.append(",");
        s.append("lfm");
        System.out.println(s);
        s.delete(0,2);
        System.out.println(s);


        s.replace(0,2, "ds");
        System.out.println(s);

        s.insert(0, "03");
        System.out.println(s);
    }
}
